<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<rich:panel header="#{messages['membership.list']}">
	
	<rich:dataTable id="data" var="obj" value="#{demoBean.valueList}" rows="10" width="99%" >
		<rich:column style="text-align:center;width:5%;" >
			<f:facet name="header">
				<h:selectBooleanCheckbox id="chkAll" onclick="checkAll(this.form,this)" ></h:selectBooleanCheckbox>
			</f:facet>
			<h:selectBooleanCheckbox id="chk" value=""></h:selectBooleanCheckbox>
		</rich:column>
		<rich:column style="text-align:center;width:50%;">
			<f:facet name="header">
				<h:outputText value="#{messages['code']}"></h:outputText>
			</f:facet>
			<h:commandLink value="#{obj.label}" action="adminEditMembership" immediate="true"></h:commandLink>
		</rich:column>
		<rich:column style="text-align:center;width:50%;">
			<f:facet name="header">
				<h:outputText value="#{messages['name']}"></h:outputText>
			</f:facet>
			<t:outputText styleClass="standardText" value="#{obj.label}"></t:outputText>
		</rich:column>
	</rich:dataTable>
	
	<rich:spacer height="30" />
	
	<rich:datascroller align="left"  for="data" maxPages="20" />

	<rich:spacer height="30" />
	
	<t:panelGrid columns="1" width="100%">
		<t:panelGroup>
			<h:commandButton value="#{messages['delete']}" styleClass="button"  immediate="true" action=""></h:commandButton>
		 	<f:verbatim>&nbsp;</f:verbatim>
		 	<h:commandButton value="#{messages['create']}" styleClass="button"  immediate="true" action="adminCreateMembership"></h:commandButton>
		 	<f:verbatim>&nbsp;</f:verbatim>
   			<h:commandButton value="#{messages['cancel']}" styleClass="button" immediate="true" action=""></h:commandButton>
   		</t:panelGroup>
	</t:panelGrid>
</rich:panel>
